package com.lz.springboot.disconf.config;

import org.springframework.stereotype.Service;
import com.baidu.disconf.client.common.annotations.DisconfItem;

@Service  
public class PriceConfig {  
  
    private double money = 1000;  
  
    private static final String KEY = "money";  
  
    /** 
     * 单项配置项 
     */  
    @DisconfItem(key = KEY)  
    public double getMoney() {  
        return money;  
    }  
  
    public void setMoney(double money) {  
        this.money = money;  
    }  
}  